import wepy from 'wepy'
import config from '../config'

export function req(options = {}, callback) {
  wepy.request({
    url: `${config}${options.method}`,
    data: `${options.data}`,
    success: function (data) {
      callback && callback(data.data)
    }
  })
}
